﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeftMenu.aspx.cs" Inherits="demo.Pages.LeftMenu" %>

<%@ Register Assembly="Water" Namespace="Water.Web.Controls" TagPrefix="page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style>
        html, body
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" style=" height:100%;">
    <page:ObjectHierarchicalDataSource ID="ObjectHierarchicalDataSource1" runat="server"
     TypeName="demo.Objects.BLL.Menu"
     DataIDField="menuid"
     DataParentIDField="parentid"
     RootParentID="0"
    >
    </page:ObjectHierarchicalDataSource>
    <div style=" height:100%;">
        <page:Container ID="Container1" runat="server"  TitleTextPrompt="menu.menutitle" Promptable="false"  PackageType="Table" DisplayBorder="false" Width="100%">
        <ItemTemplate>
        <page:TreeView ID="TreeView2" runat="server"  
            DataSourceID="ObjectHierarchicalDataSource1"  ExpandDepth="1" 
            ImageSet="Arrows"  AutoGenerateDataBindings="False" >
            <DataBindings>
                <asp:TreeNodeBinding  PopulateOnDemand="True" TextField="text" ValueField="menuid" NavigateUrlField="navigateurl" TargetField="target" ToolTipField="tooltip" ImageToolTipField="imagetooltip"/> 
            </DataBindings>
        </page:TreeView>
        </ItemTemplate>
        </page:Container>
        
    </div>
    </form>
</body>
</html>
